@shadow: 0.2rem 0.3rem 0.4rem rgba(48, 48, 48, 192);
@bottomShadow: 0 0.2rem 0.3rem rgba(48, 48, 48, 192);
@topShadow: 0 -0.1rem 0.2rem rgba(48, 48, 48, 192);
@borderColor: #888888;
@outBorder: 1px solid @borderColor;
@popupBlockSize: 48px;
html {
    font-size: 14px;
}

body {
    padding: 0;
    margin: 0;
    background-color: #eee;
    font-family: "consolas", "微软雅黑", "heiti";
    overflow: hidden;
    -webkit-user-select: none;
}

.title {
    padding: 1rem 5%;
    background: steelblue;
    color: white;
    margin-bottom: 2rem;
    box-shadow: @bottomShadow;
}

h1 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

.hidden {
    display: none !important;
}

.container {
    padding-left: 5%;
}

.puzzle {
    div {
        >span {
            cursor: pointer;
            display: inline-block;
            text-align: center;
            font-size: 24px;
            padding: 0;
            margin: 0;
            width: 10%;
            height: 24px;
            line-height: 24px;
            border-color: @borderColor;
            border-style: solid;
            border-width: 0;
            border-top-width: 1px;
            border-left-width: 1px;
            background-color: white;
            &.fixed {
                background: #777;
                color: white;
            }
            &.mark1 {
                background: lightpink;
            }
            &.mark2 {
                background: lightgreen;
            }
            &.error {
                background: darkred;
                color: white;
            }
            &.empty {
                color: transparent;
            }
            &.c-left {
                border-left: @outBorder;
                margin-left: 1px;
                &:first-child {
                    margin-left: 0;
                }
            }
            &.c-right {
                border-right: @outBorder;
            }
        }
        &.r-top {
            margin-top: 1px;
            &:first-child {
                margin-top: 0;
            }
            >span {
                border-top: @outBorder;
            }
        }
        &.r-bottom {
            >span {
                border-bottom: @outBorder;
            }
        }
    }
}

.dashboard {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    background: steelblue;
    box-sizing: border-box;
    box-shadow: @topShadow;
    height: 3rem;
    .buttons {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        button {
            font-family: "微软雅黑", HeiTi, SimHei, Arial, Helvetica, sans-serif;
            float: left;
            width: 25%;
            height: 3rem;
            font-size: 1.3rem;
            color: white;
            background: transparent;
            border: 1px solid #cccccc;
            border-right-width: 0;
            &:last-child {
                border-right-width: 1px;
            }
        }
    }
}

.popup-num {
    position: fixed;
    display: inline-block;
    top: 100px;
    left: 120px;
    box-shadow: @shadow;
    border: 1px solid white;
    color: white;
    div {
        >span {
            background: steelblue;
            width: @popupBlockSize;
            height: @popupBlockSize;
            line-height: @popupBlockSize;
            font-size: 24px;
            border-color: white;
        }
    }
}